<?php

namespace Database\Seeders;

use App\Models\Team;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class TeamSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $team = Team::create([
            'name' => 'Разработчики командообразования',
            'description' => 'Бирюза наше все',
            'domain_id' => 1
        ]);

        Team::create([
            'name' => 'Кошечка говорит MAU',
            'description' => 'Догнать и перегнать X5',
            'domain_id' => 1
        ]);

        $team->users()->attach(User::find(1));
    }
}
